/**
 * FileName: LoginController
 * Author:   Administrator
 * Date:     2018/10/23 11:07
 * Description: 管理系统登录
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.fortune.rainshinesystem.controller;

import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinesystem.model.LoginModel;
import com.fortune.rainshinesystem.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 〈一句话功能简述〉<br> 
 * 〈管理系统登录〉
 *
 * @author Administrator
 * @create 2018/10/23
 * @since 1.0.0
 */
@RestController
@RequestMapping(value = "/login")
public class LoginController {
    @Autowired
    private LoginService loginService;


    @GetMapping("/login")
    public MsgModel<String> login(Integer id){

        return loginService.loginInfo(id);
    }
}